//
//  City.m
//  05-CollectionTraversalHomeWork
//
//  Created by 曹曹 on 16/7/11.
//  Copyright © 2016年 曹曹. All rights reserved.
//

#import "City.h"

@implementation City
// 重写父类的指派初始化方法
- (instancetype)initWithName:(NSString *)name number:(NSString *)number {
    self = [super initWithName:name number:number];
    if (self) {
        _array = [NSMutableArray array];
    }
    return self;
}
- (NSString *)description {
    return [NSString stringWithFormat:@"%@, %@, %@", self.name, self.number, _array];
}
@end
